package com.bank.entity.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author: Lixy
 * @email: 1908598362@qq.com
 * @date: 2022/1/25 星期二 22:25
 */
@Getter
@AllArgsConstructor
@ToString
public enum ResponseEnum {
    SUCCESS(8000, "SUCCESS"),
    ERROR(6000, "ERROR"),
    WAITING(7000,"WAITING"),
    CHECK_USERNAME_AND_PASSWORD_ERROR(6001, "用户名或密码错误"),
    USER_NOT_LOGIN_ERROR(6002, "用户未登录"),
    GOODS_ALREADY_BUY(6003, "该用户已经参与秒杀"),
    EMPTY_STOCK_ERROR(6004, "库存不足"),
    MOBILE_STATUS_ERROR(6005,"手机号出错"),
    VALIDATOR_ERROR(6006,"验证码错误"),
    GOODS_HAS_BY_CANNCELED(6007,"无此商品或该商品已下架");



    private final Integer code;
    private final String msg;

}
